#include "DX2Images.h"
#include "DXImage.h"

#include <d3dx9.h>
#include <vector>
#include "DX.h"

DX2Images::DX2Images( std::wstring backFileURL, std::wstring foreFileURL, bool preload ) :	_imageBack( new DXImage( backFileURL, preload ) ), 
																									_imageFore( new DXImage( foreFileURL, preload ) )
{
	
}

DX2Images::~DX2Images( )
{
	delete _imageBack;
	delete _imageFore;
}

IDirect3DTexture9* DX2Images::textureBack( )
{
	return _imageBack->texture();
}

IDirect3DTexture9* DX2Images::textureFore( )
{
	return _imageFore->texture();
}

void DX2Images::unload( )
{
	_imageBack->unload();
	_imageFore->unload();
}

